3.455 \(\int \frac{(g+h x)^2}{(a+b \log (c (d (e+f x)^p)^q))^3} \, dx\)

Optimal. Leaf size=432 \[ \frac{4 h (e+f x)^2 e^{-\frac{2 a}{b p q}} (f g-e h) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{2}{p q}} \text{Ei}\left (\frac{2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{b^3 f^3 p^3 q^3}+\frac{(e+f x) e^{-\frac{a}{b p q}} (f g-e h)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{1}{p q}} \text{Ei}\left (\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{2 b^3 f^3 p^3 q^3}+\frac{9 h^2 (e+f x)^3 e^{-\frac{3 a}{b p q}} \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{3}{p q}} \text{Ei}\left (\frac{3 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{2 b^3 f^3 p^3 q^3}+\frac{(e+f x) (g+h x) (f g-e h)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \]

[Out]

((f*g - e*h)^2*(e + f*x)*ExpIntegralEi[(a + b*Log[c*(d*(e + f*x)^p)^q])/(b*p*q)])/(2*b^3*E^(a/(b*p*q))*f^3*p^3
*q^3*(c*(d*(e + f*x)^p)^q)^(1/(p*q))) + (4*h*(f*g - e*h)*(e + f*x)^2*ExpIntegralEi[(2*(a + b*Log[c*(d*(e + f*x
)^p)^q]))/(b*p*q)])/(b^3*E^((2*a)/(b*p*q))*f^3*p^3*q^3*(c*(d*(e + f*x)^p)^q)^(2/(p*q))) + (9*h^2*(e + f*x)^3*E
xpIntegralEi[(3*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(b*p*q)])/(2*b^3*E^((3*a)/(b*p*q))*f^3*p^3*q^3*(c*(d*(e + f*
x)^p)^q)^(3/(p*q))) - ((e + f*x)*(g + h*x)^2)/(2*b*f*p*q*(a + b*Log[c*(d*(e + f*x)^p)^q])^2) + ((f*g - e*h)*(e
 + f*x)*(g + h*x))/(b^2*f^2*p^2*q^2*(a + b*Log[c*(d*(e + f*x)^p)^q])) - (3*(e + f*x)*(g + h*x)^2)/(2*b^2*f*p^2
*q^2*(a + b*Log[c*(d*(e + f*x)^p)^q]))

________________________________________________________________________________________

Rubi [A]  time = 2.13421, antiderivative size = 432, normalized size of antiderivative = 1., number of steps used = 34, number of rules used = 8, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {2400, 2399, 2389, 2300, 2178, 2390, 2310, 2445} \[ \frac{4 h (e+f x)^2 e^{-\frac{2 a}{b p q}} (f g-e h) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{2}{p q}} \text{Ei}\left (\frac{2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{b^3 f^3 p^3 q^3}+\frac{(e+f x) e^{-\frac{a}{b p q}} (f g-e h)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{1}{p q}} \text{Ei}\left (\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{2 b^3 f^3 p^3 q^3}+\frac{9 h^2 (e+f x)^3 e^{-\frac{3 a}{b p q}} \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{3}{p q}} \text{Ei}\left (\frac{3 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{2 b^3 f^3 p^3 q^3}+\frac{(e+f x) (g+h x) (f g-e h)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \]

Antiderivative was successfully verified.

[In]

Int[(g + h*x)^2/(a + b*Log[c*(d*(e + f*x)^p)^q])^3,x]

[Out]

((f*g - e*h)^2*(e + f*x)*ExpIntegralEi[(a + b*Log[c*(d*(e + f*x)^p)^q])/(b*p*q)])/(2*b^3*E^(a/(b*p*q))*f^3*p^3
*q^3*(c*(d*(e + f*x)^p)^q)^(1/(p*q))) + (4*h*(f*g - e*h)*(e + f*x)^2*ExpIntegralEi[(2*(a + b*Log[c*(d*(e + f*x
)^p)^q]))/(b*p*q)])/(b^3*E^((2*a)/(b*p*q))*f^3*p^3*q^3*(c*(d*(e + f*x)^p)^q)^(2/(p*q))) + (9*h^2*(e + f*x)^3*E
xpIntegralEi[(3*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(b*p*q)])/(2*b^3*E^((3*a)/(b*p*q))*f^3*p^3*q^3*(c*(d*(e + f*
x)^p)^q)^(3/(p*q))) - ((e + f*x)*(g + h*x)^2)/(2*b*f*p*q*(a + b*Log[c*(d*(e + f*x)^p)^q])^2) + ((f*g - e*h)*(e
 + f*x)*(g + h*x))/(b^2*f^2*p^2*q^2*(a + b*Log[c*(d*(e + f*x)^p)^q])) - (3*(e + f*x)*(g + h*x)^2)/(2*b^2*f*p^2
*q^2*(a + b*Log[c*(d*(e + f*x)^p)^q]))

Rule 2400

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[((
d + e*x)*(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^(p + 1))/(b*e*n*(p + 1)), x] + (-Dist[(q + 1)/(b*n*(p + 1)), I
nt[(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^(p + 1), x], x] + Dist[(q*(e*f - d*g))/(b*e*n*(p + 1)), Int[(f + g*x
)^(q - 1)*(a + b*Log[c*(d + e*x)^n])^(p + 1), x], x]) /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g,
0] && LtQ[p, -1] && GtQ[q, 0]

Rule 2399

Int[((f_.) + (g_.)*(x_))^(q_.)/((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.)), x_Symbol] :> Int[ExpandIn
tegrand[(f + g*x)^q/(a + b*Log[c*(d + e*x)^n]), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g,
 0] && IGtQ[q, 0]

Rule 2389

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2300

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_), x_Symbol] :> Dist[x/(n*(c*x^n)^(1/n)), Subst[Int[E^(x/n)*(a +
b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2178

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - (c*f)/d))*ExpIntegral
Ei[(f*g*(c + d*x)*Log[F])/d])/d, x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !$UseGamma === True

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2310

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)*x)/n)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2445

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin{align*} \int \frac{(g+h x)^2}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^3} \, dx &=\operatorname{Subst}\left (\int \frac{(g+h x)^2}{\left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )^3} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\operatorname{Subst}\left (\frac{3 \int \frac{(g+h x)^2}{\left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )^2} \, dx}{2 b p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(f g-e h) \int \frac{g+h x}{\left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )^2} \, dx}{b f p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\frac{(f g-e h) (e+f x) (g+h x)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\operatorname{Subst}\left (\frac{9 \int \frac{(g+h x)^2}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{2 b^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(2 (f g-e h)) \int \frac{g+h x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(3 (f g-e h)) \int \frac{g+h x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(f g-e h)^2 \int \frac{1}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\frac{(f g-e h) (e+f x) (g+h x)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\operatorname{Subst}\left (\frac{9 \int \left (\frac{(f g-e h)^2}{f^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}+\frac{2 h (f g-e h) (e+f x)}{f^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}+\frac{h^2 (e+f x)^2}{f^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}\right ) \, dx}{2 b^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(2 (f g-e h)) \int \left (\frac{f g-e h}{f \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}+\frac{h (e+f x)}{f \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}\right ) \, dx}{b^2 f p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(3 (f g-e h)) \int \left (\frac{f g-e h}{f \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}+\frac{h (e+f x)}{f \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}\right ) \, dx}{b^2 f p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(f g-e h)^2 \operatorname{Subst}\left (\int \frac{1}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\frac{(f g-e h) (e+f x) (g+h x)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\operatorname{Subst}\left (\frac{\left (9 h^2\right ) \int \frac{(e+f x)^2}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{2 b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(2 h (f g-e h)) \int \frac{e+f x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(3 h (f g-e h)) \int \frac{e+f x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(9 h (f g-e h)) \int \frac{e+f x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (2 (f g-e h)^2\right ) \int \frac{1}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (3 (f g-e h)^2\right ) \int \frac{1}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{\left (9 (f g-e h)^2\right ) \int \frac{1}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{2 b^2 f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{\left ((f g-e h)^2 (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac{1}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{e^{-\frac{a}{b p q}} (f g-e h)^2 (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{1}{p q}} \text{Ei}\left (\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^3 f^3 p^3 q^3}-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\frac{(f g-e h) (e+f x) (g+h x)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\operatorname{Subst}\left (\frac{\left (9 h^2\right ) \operatorname{Subst}\left (\int \frac{x^2}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{2 b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(2 h (f g-e h)) \operatorname{Subst}\left (\int \frac{x}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(3 h (f g-e h)) \operatorname{Subst}\left (\int \frac{x}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(9 h (f g-e h)) \operatorname{Subst}\left (\int \frac{x}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (2 (f g-e h)^2\right ) \operatorname{Subst}\left (\int \frac{1}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (3 (f g-e h)^2\right ) \operatorname{Subst}\left (\int \frac{1}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{\left (9 (f g-e h)^2\right ) \operatorname{Subst}\left (\int \frac{1}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{2 b^2 f^3 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{e^{-\frac{a}{b p q}} (f g-e h)^2 (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{1}{p q}} \text{Ei}\left (\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^3 f^3 p^3 q^3}-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\frac{(f g-e h) (e+f x) (g+h x)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\operatorname{Subst}\left (\frac{\left (9 h^2 (e+f x)^3 \left (c d^q (e+f x)^{p q}\right )^{-\frac{3}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{3 x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{2 b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (2 h (f g-e h) (e+f x)^2 \left (c d^q (e+f x)^{p q}\right )^{-\frac{2}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{2 x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (3 h (f g-e h) (e+f x)^2 \left (c d^q (e+f x)^{p q}\right )^{-\frac{2}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{2 x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{\left (9 h (f g-e h) (e+f x)^2 \left (c d^q (e+f x)^{p q}\right )^{-\frac{2}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{2 x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (2 (f g-e h)^2 (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac{1}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (3 (f g-e h)^2 (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac{1}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{\left (9 (f g-e h)^2 (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac{1}{p q}}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{2 b^2 f^3 p^3 q^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{e^{-\frac{a}{b p q}} (f g-e h)^2 (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{1}{p q}} \text{Ei}\left (\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{2 b^3 f^3 p^3 q^3}+\frac{4 e^{-\frac{2 a}{b p q}} h (f g-e h) (e+f x)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{2}{p q}} \text{Ei}\left (\frac{2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{b^3 f^3 p^3 q^3}+\frac{9 e^{-\frac{3 a}{b p q}} h^2 (e+f x)^3 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{3}{p q}} \text{Ei}\left (\frac{3 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{2 b^3 f^3 p^3 q^3}-\frac{(e+f x) (g+h x)^2}{2 b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}+\frac{(f g-e h) (e+f x) (g+h x)}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}-\frac{3 (e+f x) (g+h x)^2}{2 b^2 f p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}\\ \end{align*}

Mathematica [A]  time = 2.29149, size = 438, normalized size = 1.01 \[ \frac{(e+f x) e^{-\frac{3 a}{b p q}} \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac{3}{p q}} \left (-8 h (e+f x) e^{\frac{a}{b p q}} (e h-f g) \left (c \left (d (e+f x)^p\right )^q\right )^{\frac{1}{p q}} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \text{Ei}\left (\frac{2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )+e^{\frac{2 a}{b p q}} (f g-e h)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{\frac{2}{p q}} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \text{Ei}\left (\frac{a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )+9 h^2 (e+f x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \text{Ei}\left (\frac{3 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )-b f p q (g+h x) e^{\frac{3 a}{b p q}} \left (c \left (d (e+f x)^p\right )^q\right )^{\frac{3}{p q}} \left (a (2 e h+f g+3 f h x)+b (2 e h+f (g+3 h x)) \log \left (c \left (d (e+f x)^p\right )^q\right )+b f p q (g+h x)\right )\right )}{2 b^3 f^3 p^3 q^3 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(g + h*x)^2/(a + b*Log[c*(d*(e + f*x)^p)^q])^3,x]

[Out]

((e + f*x)*(E^((2*a)/(b*p*q))*(f*g - e*h)^2*(c*(d*(e + f*x)^p)^q)^(2/(p*q))*ExpIntegralEi[(a + b*Log[c*(d*(e +
 f*x)^p)^q])/(b*p*q)]*(a + b*Log[c*(d*(e + f*x)^p)^q])^2 - 8*E^(a/(b*p*q))*h*(-(f*g) + e*h)*(e + f*x)*(c*(d*(e
 + f*x)^p)^q)^(1/(p*q))*ExpIntegralEi[(2*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(b*p*q)]*(a + b*Log[c*(d*(e + f*x)^
p)^q])^2 + 9*h^2*(e + f*x)^2*ExpIntegralEi[(3*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(b*p*q)]*(a + b*Log[c*(d*(e +
f*x)^p)^q])^2 - b*E^((3*a)/(b*p*q))*f*p*q*(c*(d*(e + f*x)^p)^q)^(3/(p*q))*(g + h*x)*(b*f*p*q*(g + h*x) + a*(f*
g + 2*e*h + 3*f*h*x) + b*(2*e*h + f*(g + 3*h*x))*Log[c*(d*(e + f*x)^p)^q])))/(2*b^3*E^((3*a)/(b*p*q))*f^3*p^3*
q^3*(c*(d*(e + f*x)^p)^q)^(3/(p*q))*(a + b*Log[c*(d*(e + f*x)^p)^q])^2)

________________________________________________________________________________________

Maple [F]  time = 0.491, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( hx+g \right ) ^{2}}{ \left ( a+b\ln \left ( c \left ( d \left ( fx+e \right ) ^{p} \right ) ^{q} \right ) \right ) ^{3}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((h*x+g)^2/(a+b*ln(c*(d*(f*x+e)^p)^q))^3,x)

[Out]

int((h*x+g)^2/(a+b*ln(c*(d*(f*x+e)^p)^q))^3,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^2/(a+b*log(c*(d*(f*x+e)^p)^q))^3,x, algorithm="maxima")

[Out]

-1/2*((3*a*f^2*h^2 + (f^2*h^2*p*q + 3*f^2*h^2*log(c) + 3*f^2*h^2*log(d^q))*b)*x^3 + ((4*f^2*g*h + 5*e*f*h^2)*a
 + (2*f^2*g*h*p*q + e*f*h^2*p*q + (4*f^2*g*h + 5*e*f*h^2)*log(c) + (4*f^2*g*h + 5*e*f*h^2)*log(d^q))*b)*x^2 +
(e*f*g^2 + 2*e^2*g*h)*a + (e*f*g^2*p*q + (e*f*g^2 + 2*e^2*g*h)*log(c) + (e*f*g^2 + 2*e^2*g*h)*log(d^q))*b + ((
f^2*g^2 + 6*e*f*g*h + 2*e^2*h^2)*a + (f^2*g^2*p*q + 2*e*f*g*h*p*q + (f^2*g^2 + 6*e*f*g*h + 2*e^2*h^2)*log(c) +
 (f^2*g^2 + 6*e*f*g*h + 2*e^2*h^2)*log(d^q))*b)*x + (3*b*f^2*h^2*x^3 + (4*f^2*g*h + 5*e*f*h^2)*b*x^2 + (f^2*g^
2 + 6*e*f*g*h + 2*e^2*h^2)*b*x + (e*f*g^2 + 2*e^2*g*h)*b)*log(((f*x + e)^p)^q))/(b^4*f^2*p^2*q^2*log(((f*x + e
)^p)^q)^2 + a^2*b^2*f^2*p^2*q^2 + 2*(f^2*p^2*q^2*log(c) + f^2*p^2*q^2*log(d^q))*a*b^3 + (f^2*p^2*q^2*log(c)^2
+ 2*f^2*p^2*q^2*log(c)*log(d^q) + f^2*p^2*q^2*log(d^q)^2)*b^4 + 2*(a*b^3*f^2*p^2*q^2 + (f^2*p^2*q^2*log(c) + f
^2*p^2*q^2*log(d^q))*b^4)*log(((f*x + e)^p)^q)) + integrate(1/2*(9*f^2*h^2*x^2 + f^2*g^2 + 6*e*f*g*h + 2*e^2*h
^2 + 2*(4*f^2*g*h + 5*e*f*h^2)*x)/(b^3*f^2*p^2*q^2*log(((f*x + e)^p)^q) + a*b^2*f^2*p^2*q^2 + (f^2*p^2*q^2*log
(c) + f^2*p^2*q^2*log(d^q))*b^3), x)

________________________________________________________________________________________

Fricas [B]  time = 2.42086, size = 3706, normalized size = 8.58 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^2/(a+b*log(c*(d*(f*x+e)^p)^q))^3,x, algorithm="fricas")

[Out]

1/2*(8*((b^2*f*g*h - b^2*e*h^2)*p^2*q^2*log(f*x + e)^2 + a^2*f*g*h - a^2*e*h^2 + (b^2*f*g*h - b^2*e*h^2)*q^2*l
og(d)^2 + (b^2*f*g*h - b^2*e*h^2)*log(c)^2 + 2*((b^2*f*g*h - b^2*e*h^2)*p*q^2*log(d) + (b^2*f*g*h - b^2*e*h^2)
*p*q*log(c) + (a*b*f*g*h - a*b*e*h^2)*p*q)*log(f*x + e) + 2*(a*b*f*g*h - a*b*e*h^2)*log(c) + 2*((b^2*f*g*h - b
^2*e*h^2)*q*log(c) + (a*b*f*g*h - a*b*e*h^2)*q)*log(d))*e^((b*q*log(d) + b*log(c) + a)/(b*p*q))*log_integral((
f^2*x^2 + 2*e*f*x + e^2)*e^(2*(b*q*log(d) + b*log(c) + a)/(b*p*q))) + ((b^2*f^2*g^2 - 2*b^2*e*f*g*h + b^2*e^2*
h^2)*p^2*q^2*log(f*x + e)^2 + a^2*f^2*g^2 - 2*a^2*e*f*g*h + a^2*e^2*h^2 + (b^2*f^2*g^2 - 2*b^2*e*f*g*h + b^2*e
^2*h^2)*q^2*log(d)^2 + (b^2*f^2*g^2 - 2*b^2*e*f*g*h + b^2*e^2*h^2)*log(c)^2 + 2*((b^2*f^2*g^2 - 2*b^2*e*f*g*h
+ b^2*e^2*h^2)*p*q^2*log(d) + (b^2*f^2*g^2 - 2*b^2*e*f*g*h + b^2*e^2*h^2)*p*q*log(c) + (a*b*f^2*g^2 - 2*a*b*e*
f*g*h + a*b*e^2*h^2)*p*q)*log(f*x + e) + 2*(a*b*f^2*g^2 - 2*a*b*e*f*g*h + a*b*e^2*h^2)*log(c) + 2*((b^2*f^2*g^
2 - 2*b^2*e*f*g*h + b^2*e^2*h^2)*q*log(c) + (a*b*f^2*g^2 - 2*a*b*e*f*g*h + a*b*e^2*h^2)*q)*log(d))*e^(2*(b*q*l
og(d) + b*log(c) + a)/(b*p*q))*log_integral((f*x + e)*e^((b*q*log(d) + b*log(c) + a)/(b*p*q))) - (b^2*e*f^2*g^
2*p^2*q^2 + (b^2*f^3*h^2*p^2*q^2 + 3*a*b*f^3*h^2*p*q)*x^3 + (a*b*e*f^2*g^2 + 2*a*b*e^2*f*g*h)*p*q + ((2*b^2*f^
3*g*h + b^2*e*f^2*h^2)*p^2*q^2 + (4*a*b*f^3*g*h + 5*a*b*e*f^2*h^2)*p*q)*x^2 + ((b^2*f^3*g^2 + 2*b^2*e*f^2*g*h)
*p^2*q^2 + (a*b*f^3*g^2 + 6*a*b*e*f^2*g*h + 2*a*b*e^2*f*h^2)*p*q)*x + (3*b^2*f^3*h^2*p^2*q^2*x^3 + (4*b^2*f^3*
g*h + 5*b^2*e*f^2*h^2)*p^2*q^2*x^2 + (b^2*f^3*g^2 + 6*b^2*e*f^2*g*h + 2*b^2*e^2*f*h^2)*p^2*q^2*x + (b^2*e*f^2*
g^2 + 2*b^2*e^2*f*g*h)*p^2*q^2)*log(f*x + e) + (3*b^2*f^3*h^2*p*q*x^3 + (4*b^2*f^3*g*h + 5*b^2*e*f^2*h^2)*p*q*
x^2 + (b^2*f^3*g^2 + 6*b^2*e*f^2*g*h + 2*b^2*e^2*f*h^2)*p*q*x + (b^2*e*f^2*g^2 + 2*b^2*e^2*f*g*h)*p*q)*log(c)
+ (3*b^2*f^3*h^2*p*q^2*x^3 + (4*b^2*f^3*g*h + 5*b^2*e*f^2*h^2)*p*q^2*x^2 + (b^2*f^3*g^2 + 6*b^2*e*f^2*g*h + 2*
b^2*e^2*f*h^2)*p*q^2*x + (b^2*e*f^2*g^2 + 2*b^2*e^2*f*g*h)*p*q^2)*log(d))*e^(3*(b*q*log(d) + b*log(c) + a)/(b*
p*q)) + 9*(b^2*h^2*p^2*q^2*log(f*x + e)^2 + b^2*h^2*q^2*log(d)^2 + b^2*h^2*log(c)^2 + 2*a*b*h^2*log(c) + a^2*h
^2 + 2*(b^2*h^2*p*q^2*log(d) + b^2*h^2*p*q*log(c) + a*b*h^2*p*q)*log(f*x + e) + 2*(b^2*h^2*q*log(c) + a*b*h^2*
q)*log(d))*log_integral((f^3*x^3 + 3*e*f^2*x^2 + 3*e^2*f*x + e^3)*e^(3*(b*q*log(d) + b*log(c) + a)/(b*p*q))))*
e^(-3*(b*q*log(d) + b*log(c) + a)/(b*p*q))/(b^5*f^3*p^5*q^5*log(f*x + e)^2 + b^5*f^3*p^3*q^5*log(d)^2 + b^5*f^
3*p^3*q^3*log(c)^2 + 2*a*b^4*f^3*p^3*q^3*log(c) + a^2*b^3*f^3*p^3*q^3 + 2*(b^5*f^3*p^4*q^5*log(d) + b^5*f^3*p^
4*q^4*log(c) + a*b^4*f^3*p^4*q^4)*log(f*x + e) + 2*(b^5*f^3*p^3*q^4*log(c) + a*b^4*f^3*p^3*q^4)*log(d))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)**2/(a+b*ln(c*(d*(f*x+e)**p)**q))**3,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^2/(a+b*log(c*(d*(f*x+e)^p)^q))^3,x, algorithm="giac")

[Out]

Timed out